home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Development Additions / MPW Additions / UserStartup•OpenDoc
Encoding:
Text File  |  1995-11-09  |  1.5 KB  |  51 lines  |  [TEXT/MPS ]

  1.  
  2. ## SET UP THE OPENDOC INTERFACES/UTILS PATH
  3.  
  4. if (`exists "{PrefsFolder}OpenDocPath"` == "")
  5.     Set OpenDocDir `GetFileName -d -m "Where is the OpenDoc folder?"∂
  6.                     "{Boot}";Set saveStatus {Status}`
  7.     
  8.     if ( "{OpenDocDir}" != "" )
  9.         Echo "{OpenDocDir}" > "{PrefsFolder}OpenDocPath"
  10.     end
  11. end
  12.  
  13. set OpenDocDir "`catenate "{PrefsFolder}OpenDocPath"`"
  14.  
  15. if (`exists "{OpenDocDir}"` == "")
  16.     Set OpenDocDir `GetFileName -d -m "Where is the OpenDoc folder?"∂
  17.                     "{Boot}";Set saveStatus {Status}`
  18.     
  19.     if ( "{OpenDocDir}" != "" )
  20.         Echo "{OpenDocDir}" > "{PrefsFolder}OpenDocPath"
  21.     end
  22. end
  23.  
  24. Export OpenDocDir
  25.  
  26. ## ADD THE BUILD SUPPORT FOLDER TO THE COMMAND PATH
  27.  
  28. if (`exists -d "{MPW}Build Support:"` != "")
  29.     Set Commands "{Commands},{MPW}Build Support:"
  30.     Export Commands
  31.     Set OpenDocBuildSupportDir "{MPW}Build Support:"
  32.     Export OpenDocBuildSupportDir
  33. else if (`exists -d "{MPW}Scripts:Build Support:"` != "")
  34.     Set Commands "{Commands},{MPW}Scripts:Build Support:"
  35.     Export Commands
  36.     Set OpenDocBuildSupportDir "{MPW}Scripts:Build Support:"
  37.     Export OpenDocBuildSupportDir
  38. else
  39.     Echo
  40.     Echo '####'
  41.     Echo '###  Warning! The "Build Support" folder has not been installed'
  42.     Echo '###  yet. You will need to install this folder before building'
  43.     Echo '###  sample code parts will be possible. Please refer to the'
  44.     Echo '###  “SampleCode Read Me” document for installation instructions.'
  45.     Echo '###'
  46.     Echo '###  Valid installation sites:'
  47.     Echo "###   ->“{MPW}” folder"
  48.     Echo "###   ->“{MPW}Scripts:” folder"
  49.     Echo '####'
  50. end
  51.